Skip to content

[ENG-3771] projects-cli-0: explicit projects CLI#731

Open
mrmoxon wants to merge 1 commit into
mainfrom
projects-cli-0
Open

[ENG-3771] projects-cli-0: explicit projects CLI#731
mrmoxon wants to merge 1 commit into
mainfrom
projects-cli-0

Conversation

@mrmoxon

@mrmoxon mrmoxon commented Jun 8, 2026

Copy link
Copy Markdown

Summary

  • add the prime project command group plus Projects API/context helpers
  • support explicit project attachment for training runs, eval pushes, hosted evals, and artifact assignment/removal
  • keep train/eval behavior explicit-only: no active-project defaulting in this tranche

Validation

  • uv run pytest packages/prime/tests/test_rl_config.py packages/prime/tests/test_projects_cli.py packages/prime/tests/test_eval_push.py packages/prime/tests/test_hosted_eval.py packages/prime/tests/test_rl_api.py packages/prime/tests/test_deployments.py packages/prime-evals/tests/test_evals.py -q
  • uv run ruff check packages/prime/src/prime_cli/commands/rl.py packages/prime/src/prime_cli/api/projects.py packages/prime/src/prime_cli/commands/projects.py packages/prime/src/prime_cli/utils/projects.py packages/prime/src/prime_cli/commands/evals.py packages/prime/src/prime_cli/utils/eval_push.py packages/prime/src/prime_cli/verifiers_bridge.py packages/prime/tests/test_projects_cli.py packages/prime/tests/test_eval_push.py packages/prime/tests/test_hosted_eval.py packages/prime-evals/src/prime_evals/evals.py packages/prime-evals/tests/test_evals.py

Stacked with #732, which contains the default-project UX layer.


Note

Medium Risk
Touches evaluation create/update payloads and training-run project PATCH flows across CLI and SDK; mis-scoped project context could attach artifacts to the wrong team/project, though scope validation and explicit-only defaults limit blast radius.

Overview
Adds Lab projects end-to-end: a new prime project command group (create/list/show/use/current/update/clear plus assign/remove for training runs, evaluations, and adapters), backed by a Projects API client and workspace active-project context (.prime/lab/context.json, optional PRIME_PROJECT_ID, team-scope checks).

Training and evals gain explicit --project / --no-project flags: hosted training launches send project_id; eval push and eval run (local and hosted) attach or clear project membership without silently defaulting to the active workspace project in this tranche. SDK/API wiring extends prime-evals with project_id on create, update_evaluation(..., clear_project=True), and switches owner-qualified environment resolution to POST /environmentshub/lookup. RL runs and LoRA adapters get PATCH project-membership helpers on the CLI API clients.

README and package docs document the new workflows; tests cover project CLI, eval push/hosted payloads, and API payload shapes.

Reviewed by Cursor Bugbot for commit 65d3769. Bugbot is set up for automated code reviews on this repo. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant